<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>hello</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <h2>运营商管理</h2>
            <!--添加员工按钮-->
            <a class="btn btn-sm btn-primary" th:href="@{/add}">添加</a>

            <div class="table-responsive">
                <table class="table table-striped table-sm">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>姓名</th>
                        <th>邮箱</th>
                        <th>性别</th>
                        <th>部门</th>
                        <th>入职日期</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="phone:${phones}">
                        <td th:text="${phone.type_id}"></td>
                        <td th:text="${phone.number_part}"></td>
                        <td th:text="${phone.type_name}"></td>
                        <td th:text="${phone.type_remark}"></td>
                        <td >
                            <a class="btn btn-sm btn-primary" th:href="@{/phone/}+${phone.id}">编辑</a>
                            <a class="btn btn-sm btn-danger" th:href="@{/delaPhone/}+${phone.id}">删除</a>
                        </td>
                    </tr>

                    </tbody>
                </table>
            </div>
        </main>
    </div>
</div>
</body>
</html>
